﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace _RobotInspection.Entities
{
    ///<summary>
    ///用户表
    ///</summary>
    public partial class users
    {
           public users(){

            this.prmission =Convert.ToByte("1");
            this.status =Convert.ToByte("1");
            this.created_at =DateTime.Now;
            this.updated_at =DateTime.Now;

           }

        /// <summary>
        /// Desc:用户ID
        /// Default:
        /// Nullable:False
        /// </summary>    
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long id {get;set;}

           /// <summary>
           /// Desc:用户名
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string username {get;set;}

           /// <summary>
           /// Desc:真实姓名
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string real_name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string user_password {get;set;}

           /// <summary>
           /// Desc:联系电话
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? phone {get;set;}

           /// <summary>
           /// Desc:邮箱
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? email {get;set;}

           /// <summary>
           /// Desc:权限:1普通
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public byte prmission {get;set;}

           /// <summary>
           /// Desc:状态：1-启用，0-禁用
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public byte? status {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? created_at {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? updated_at {get;set;}

    }
}
